Optimal. Leaf size=136 \[ -\frac {(2 c g-b h) \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c \sqrt {b^2-4 a c} d \sqrt {a d+b d x+c d x^2}}+\frac {h \sqrt {a+b x+c x^2} \log \left (a+b x+c x^2\right )}{2 c d \sqrt {a d+b d x+c d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {1013, 648, 632,
212, 642} \begin {gather*} \frac {h \sqrt {a+b x+c x^2} \log \left (a+b x+c x^2\right )}{2 c d \sqrt {a d+b d x+c d x^2}}-\frac {\sqrt {a+b x+c x^2} (2 c g-b h) \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c d \sqrt {b^2-4 a c} \sqrt {a d+b d x+c d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rule 642
Rule 648
Rule 1013
Rubi steps
\begin {align*} \int \frac {(g+h x) \sqrt {a+b x+c x^2}}{\left (a d+b d x+c d x^2\right )^{3/2}} \, dx &=\frac {\sqrt {a+b x+c x^2} \int \frac {g+h x}{a d+b d x+c d x^2} \, dx}{\sqrt {a d+b d x+c d x^2}}\\ &=\frac {\left (h \sqrt {a+b x+c x^2}\right ) \int \frac {b d+2 c d x}{a d+b d x+c d x^2} \, dx}{2 c d \sqrt {a d+b d x+c d x^2}}+\frac {\left ((2 c d g-b d h) \sqrt {a+b x+c x^2}\right ) \int \frac {1}{a d+b d x+c d x^2} \, dx}{2 c d \sqrt {a d+b d x+c d x^2}}\\ &=\frac {h \sqrt {a+b x+c x^2} \log \left (a+b x+c x^2\right )}{2 c d \sqrt {a d+b d x+c d x^2}}-\frac {\left ((2 c d g-b d h) \sqrt {a+b x+c x^2}\right ) \text {Subst}\left (\int \frac {1}{\left (b^2-4 a c\right ) d^2-x^2} \, dx,x,b d+2 c d x\right )}{c d \sqrt {a d+b d x+c d x^2}}\\ &=-\frac {(2 c g-b h) \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c \sqrt {b^2-4 a c} d \sqrt {a d+b d x+c d x^2}}+\frac {h \sqrt {a+b x+c x^2} \log \left (a+b x+c x^2\right )}{2 c d \sqrt {a d+b d x+c d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 108, normalized size = 0.79 \begin {gather*} \frac {(a+x (b+c x))^{3/2} \left ((4 c g-2 b h) \tan ^{-1}\left (\frac {b+2 c x}{\sqrt {-b^2+4 a c}}\right )+\sqrt {-b^2+4 a c} h \log (a+x (b+c x))\right )}{2 c \sqrt {-b^2+4 a c} (d (a+x (b+c x)))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 121, normalized size = 0.89
method | result | size |
default | \(\frac {\sqrt {d \left (c \,x^{2}+b x +a \right )}\, \left (h \ln \left (c \,x^{2}+b x +a \right ) \sqrt {4 a c -b^{2}}-2 \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right ) b h +4 \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right ) c g \right )}{2 \sqrt {c \,x^{2}+b x +a}\, d^{2} c \sqrt {4 a c -b^{2}}}\) | \(121\) |
risch | \(\frac {\sqrt {c \,x^{2}+b x +a}\, \left (4 a c h -b^{2} h +\sqrt {-\left (b h -2 c g \right )^{2} \left (4 a c -b^{2}\right )}\right ) \ln \left (-4 a b c h +8 a \,c^{2} g +b^{3} h -2 b^{2} c g -2 \sqrt {-\left (b h -2 c g \right )^{2} \left (4 a c -b^{2}\right )}\, c x -\sqrt {-\left (b h -2 c g \right )^{2} \left (4 a c -b^{2}\right )}\, b \right )}{2 d \sqrt {d \left (c \,x^{2}+b x +a \right )}\, c \left (4 a c -b^{2}\right )}-\frac {\sqrt {c \,x^{2}+b x +a}\, \left (-4 a c h +b^{2} h +\sqrt {-\left (b h -2 c g \right )^{2} \left (4 a c -b^{2}\right )}\right ) \ln \left (-4 a b c h +8 a \,c^{2} g +b^{3} h -2 b^{2} c g +2 \sqrt {-\left (b h -2 c g \right )^{2} \left (4 a c -b^{2}\right )}\, c x +\sqrt {-\left (b h -2 c g \right )^{2} \left (4 a c -b^{2}\right )}\, b \right )}{2 d \sqrt {d \left (c \,x^{2}+b x +a \right )}\, c \left (4 a c -b^{2}\right )}\) | \(328\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (g + h x\right ) \sqrt {a + b x + c x^{2}}}{\left (d \left (a + b x + c x^{2}\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (g+h\,x\right )\,\sqrt {c\,x^2+b\,x+a}}{{\left (c\,d\,x^2+b\,d\,x+a\,d\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________